#include <iostream>
#include <string>
using namespace std;
class Test
{
	int x=5;


public:

	 Test(int n)
	{
		x = n;
	}
	 void printInfo()
	 {
		 cout << x * 2 << endl;
	 }
	void printInfo()const
	{
		cout << x<< endl;
	}
	void setX(int n)
	{
		x = n;
	}
};


int main() {
	int n;
	cin >> n;
	Test t1(n);
	t1.printInfo();
	const Test t2(n);
	t2.printInfo();
	t1.setX(n + 5);
	t1.printInfo();
	const Test& t3 = t1;
	t3.printInfo();
	return 0;
}
